//
//  MCSendListNameModel.m
//  ZXZX
//
//  Created by menhao on 2018/9/4.
//  Copyright © 2018年 TLYL01. All rights reserved.
//

#import "MCSendListNameModel.h"

@implementation MCSendListNameModel

- (NSString *)urlPathComponentForManagerWithManager:(ApiBaseManager *)manager{
    
    return @"web-api/api/v1/redenvelopes/user/send_list_username";
}

- (NSDictionary<NSString *,id> *)parametersForManagerWithManager:(ApiBaseManager *)manager{
    NSString *timeString = [NSString getCurrentTimestamp];
    NSDictionary *dic =@{@"IsTeam":self.IsTeam};
    NSString *jsonStr = [dic convertToJsonData];
    NSString *sign = [NSString stringWithFormat:@"%@%@%@",jsonStr,@"",timeString];
    return @{@"params":jsonStr,
             @"sign":[sign MD5],
             @"timestamp":timeString
             };
}
- (void)managerCallAPIDidFailedWithManager:(ApiBaseManager *)manager errorCode:(NSString *)errorCode{
    [BKIndicationView dismiss];
    if (self.callBackFailedBlock) {
        self.callBackFailedBlock(manager, errorCode);
    }
}

@end
